<!-- 我的基础 -->

<template>
  <div>
    <MajorTitle title="基本信息">
      <ShowStatus :one="one.deviceDto" bind="status" :dict="CORE.DICT.STATUS_ONLINE_DEVICE" noLabel auto />
    </MajorTitle>

    <EasyRow col3>
      <ShowText :one="one.deviceDto" label="设备编号" bind="deviceCode" />
      <ShowText :one="one.deviceDto" label="设备名称" bind="deviceName" />
      <ShowText label="设备类型" bind="terminalType" />
    </EasyRow>

    <EasyRow col3>
      <ShowDict label="终端属性" bind="settingType" :dict="DICT.PROP" />
      <ShowText :one="one.deviceDto" label="IP 地址" bind="ipAddress" />
      <ShowText :one="one.deviceDto" label="MAC 地址" bind="mac" />
    </EasyRow>

    <EasyRow col3>
      <ShowText label="当前任务" bind="task" empty="-" />
      <ShowTree
        :one="one.deviceDto"
        :label="`所在${CORE.MAP.REGION}`"
        bind="deviceDto.areaId"
        :dict="CORE.REGION.DICT"
        allName
        third2
      />
    </EasyRow>
  </div>
</template>

<script>
// ============================== 导入依赖 ============================== //

import CORE from '@/CORE'

// ============================== 导出组件 ============================== //

export default {
  /**
   * 名称定义 (实际使用名称)
   */
  name: 'MyBase',

  /**
   * 混入列表 (配置选项合并)
   */
  mixins: [CORE.mixWeb()],
}
</script>
